package com.autumn.config.entities.view;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.autumn.config.entities.ApplicationDataSource;
import com.autumn.mybatis.mapper.annotation.TableOrderBy;
import com.autumn.mybatis.mapper.annotation.ViewTable;

/**
 * 应用数据源视图
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2018-01-01 16:22:51
 */
@Entity
@Table(name = "view_app_info_data_source")
@ViewTable
@TableOrderBy(value = "appId ASC,sortId ASC")
public class ApplicationDataSourceView extends ApplicationDataSource {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8486058149122239536L;

	private String targetAppName;
	private String connectionName;
	private Integer connectionType;

	/**
	 * 获取目标应用名称
	 * 
	 * @return
	 */
	public String getTargetAppName() {
		return targetAppName;
	}

	/**
	 * 设置目标应用名称
	 * 
	 * @param targetAppName
	 *            应用名称
	 */
	public void setTargetAppName(String targetAppName) {
		this.targetAppName = targetAppName;
	}

	/**
	 * 获取连接名称
	 * 
	 * @return
	 */
	public String getConnectionName() {
		return connectionName;
	}

	/**
	 * 设置连接名称
	 * 
	 * @param connectionName
	 *            连接名称
	 */
	public void setConnectionName(String connectionName) {
		this.connectionName = connectionName;
	}

	/**
	 * 获取连接类型
	 * 
	 * @return
	 */
	public Integer getConnectionType() {
		return connectionType;
	}

	/**
	 * 设置连接类型
	 * 
	 * @param connectionType
	 *            连接类型
	 */
	public void setConnectionType(Integer connectionType) {
		this.connectionType = connectionType;
	}

}
